import request from "@/utils/request";

/**
 * 获取列表
 * @param {Object} params 请求参数，用于分页查询
 * @returns {Promise}
 */
export function getRegionList(params) {
  return request({
    url: "/operLog/page",
    method: "get",
    params
  });
}

export function getAllRegionList(params) {
  return request({
    url: "/operLog/list",
    method: "get",
    params
  });
}
/**
 * 获取详情
 * @param {number} id 的唯一标识符
 * @returns {Promise}
 */
export function getRegionDetail(id) {
  return request({
    url: `/operLog/${id}`,
    method: "get"
  });
}

/**
 * 删除
 * @param {number[]} ids 要删除的的唯一标识符数组
 * @returns {Promise}
 */
export function deleteRegion(ids) {
  return request({
    url: `/operLog/${ids}`,
    method: "delete"
  });
}
